from django.db import models

# Create your models here.


class Users(models.Model):
	user = models.CharField(max_length=8,unique=True,db_index=True)
	passwd = models.CharField(max_length=18)
	email = models.CharField(max_length=50,null=True,unique=True)
	phone = models.CharField(max_length=20,null=True,unique=True)
	name = models.CharField(max_length=50,unique=True)
	date = models.DateField(auto_now_add=True)

	def __str__(self):
		return self.name